<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3.6 CSS3重复性渐变</title>
    <style>
        .linear{
             width: 300px;
             height: 300px;
             margin: 20px auto;
             background-image: repeating-linear-gradient(red 0px,green 40px,orange 80px);/*线性渐变*/
        }
    </style>
</head>
<body>
    <div class="linear"></div>
</body>
</html>